﻿using Common.Log;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using DryWCS.App.UICore;
using DryWCS.App.View;

namespace DryWCS.App
{
    /// <summary>
    /// App.xaml 的交互逻辑
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            LogHelper.DeleteLogDirectory(@"Log\LogError");
            LogHelper.DeleteLogDirectory(@"Log\LogInfo");
            WaitingView waitingWindow = new WaitingView("正在初始化库位信息……", new MainWindow());
            waitingWindow.CallBack += WaitingWindow_CallBack;

            waitingWindow.ShowDialog();
        }
        private void WaitingWindow_CallBack(Window obj)
        {
            obj.Show();
        }
    }
}
